package org.my.back;

import com.easyaop.api.event.BeforeEvent;
import com.easyaop.api.event.ReturnEvent;
import com.easyaop.api.event.ThrowableEvent;
import com.easyaop.api.event.listener.AbstractMethodListener;

public class MyMethodListener extends AbstractMethodListener {
    @Override
    public void before(BeforeEvent event) {
        event.getThis();
//        event.getArguments();
        System.out.println("aop: Logging before method execution.");
    }

    @Override
    public void afterReturn(ReturnEvent event) {
//        event.getThis();
//        event.getArguments();
//        event.getReturnValue();
    }

    @Override
    public void exception(ThrowableEvent event) {
//        event.getThis();
//        event.getArguments();
//        event.getThrowable();
    }
}
